<?php
/*
  $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

  $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  $product_check = tep_db_fetch_array($product_check_query);
  $nano_result = tep_db_query("select products_image from products where products_id ='" . (int)$HTTP_GET_VARS['products_id'] . "'");
  $nano_2_result = tep_db_query("select products_image from products where products_id ='" . (int)$HTTP_GET_VARS['products_id'] . "'");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<?php
# Custom Javascripts
require(DIR_WS_INCLUDES . 'custom_javascript.php');
?>
</head>
<body id="page" class="font-large width-thin" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- quick menu //-->
<?php require('quickfind_header.php'); ?>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" align="center" cellspacing="0" cellpadding="0">
  <tr>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </table></td>
<td>&nbsp;</td>
<!-- body_text //-->
<!-- Master Products //-->
    <td width="100%" valign="top"><?php  echo '<form name="buy_now_" method="post" action="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_slave', 'NONSSL') . '">'; ?><table border="0" width="100%" cellspacing="0" cellpadding="0">	
<?php
// Master Products EOF
  if ($product_check['total'] < 1) {
?>
      <tr>
        <td><?php new infoBox(array(array('text' => TEXT_PRODUCT_NOT_FOUND))); ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="infoBox">
          <tr class="infoBoxContents">
            <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                <td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php
  } else {
//Master Products   	
    $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_price, p.products_master_status, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
//Master Products EOF
    $product_info = tep_db_fetch_array($product_info_query);
/// osplayer v2 start  
    $product_mp3['folder'] = tep_get_mp3_folder($product_info['products_id']) ; 
/// osplayer v2 end   
    tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'");

    if ($new_price = tep_get_products_special_price($product_info['products_id'])) {
      $products_price = '<s>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</s> <span class="productSpecialPrice">' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</span>';
    } else {
      $products_price = $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id']));
    }

    if (tep_not_null($product_info['products_model'])) {
      $products_name = $product_info['products_name'] . '&nbsp;&nbsp;-&nbsp;&nbsp;' . $product_info['products_model'] . '';
    } else {
      $products_name = $product_info['products_name'];
    }
?>
      <tr>
        <td class="bordertlr">


<table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="blocktitle" valign="top"><h3><?php echo stripslashes($products_name); ?></h3>
	    <!--
	    Skype 'My status' button
	    http://www.skype.com/go/skypebuttons
	    -->
	    <script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
	    <a href="skype:star3am?chat"><img src="http://mystatus.skype.com/smallclassic/star3am" style="border: none;" width="114" height="20" alt="My status" /></a>
	    </td>
            <td class="blocktitle" align="right" valign="top"><h2><?php echo $products_price; ?></h2></td>
          </tr>
        </table>
<!-- osPlayer v2 Start --> 
<?php 
    if( (tep_not_null($product_mp3['folder'])) && (ENTRY_OSCP_POPUP == 'true') && (file_exists(DIR_FS_CATALOG_MP3 . $product_mp3['folder'])) && (is_dir(DIR_FS_CATALOG_MP3 . $product_mp3['folder']))) { 
    ?> 
    
    
    
    
    
         <table border="0" width="150" cellspacing="2" cellpadding="0" align="right">
              <tr>
                 <td class="">
                 <?php /*echo '<object type="application/x-shockwave-flash" data="osc_player_ipod_150.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'" width="150" height="388"><param name="scale" value="exactfit" /><param name="quality" value="high" /><param name="bgcolor" value="#002f64" /><param name="movie" value="osc_player_ipod.swf?mp3id=' . $HTTP_GET_VARS['products_id'] .'"/><a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash  target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a></object>' ;*/?>

                 <?php
                 while ($nano_result_rows = mysql_fetch_array( $nano_result, MYSQL_ASSOC))
                    {
                    ?>
                    <object type="application/x-shockwave-flash" data="osc_player_ipod_150_jan.swf?mp3id=<?php echo $HTTP_GET_VARS['products_id'];?>&autoplay=true&buyURL=http://www.3am.co.za/catalog/product_info.php?products_id=<?php echo $HTTP_GET_VARS['products_id'];?>&coverURL=<?php echo "{$nano_result_rows['products_image']}";?>" width="150" height="388">
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#000000" />
                    <param name="movie" value="osc_player_ipod_150_jan.swf?mp3id=<?php echo $_GET['products_id'];?>&autoplay=true&buyURL=http://www.3am.co.za/catalog/product_info.php?products_id=<?php echo $HTTP_GET_VARS['products_id'];?>&coverURL=<?php echo "{$nano_result_rows['products_image']}";?>"/>
                    <embed src="osc_player_ipod_150_jan.swf?mp3id=<?php echo $_GET['products_id'];?>&autoplay=true&buyURL=http://www.3am.co.za/catalog/product_info.php?products_id=<?php echo $HTTP_GET_VARS['products_id'];?>&coverURL=<?php echo "{$nano_result_rows['products_image']}";?>" quality="high" bgcolor="#000000" width="150" height="388" name="movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
                    </object>
<center>
<span class="nicegreen"><b>Wanna add this Player to your Website? EASY! Just copy the code below!</b> <br></span>
<input class="inputbox" name="video_link" type="text" value='<object type="application/x-shockwave-flash" data="http://www.3am.co.za/catalog/osc_player_ipod_150_jan.swf?mp3id=<?php echo $HTTP_GET_VARS['products_id'];?>&autoplay=true&buyURL=http://www.3am.co.za/catalog/product_info.php?products_id=<?php echo $HTTP_GET_VARS['products_id'];?>&coverURL=<?php echo "{$nano_result_rows['products_image']}";?>" width="150" height="388"><param name="wmode" value="transparent"><param name="quality" value="high"><param name="bgcolor" value=""><param name="movie" value="http://www.3am.co.za/catalog/osc_player_ipod_150_jan.swf?mp3id=<?php echo $HTTP_GET_VARS['products_id'];?>&autoplay=true&buyURL=http://www.3am.co.za/catalog/product_info.php?products_id=<?php echo $HTTP_GET_VARS['products_id'];?>&coverURL=<?php echo "{$nano_result_rows['products_image']}";?>"><embed src="http://www.3am.co.za/catalog/osc_player_ipod_150_jan.swf?mp3id=<?php echo $HTTP_GET_VARS['products_id'];?>&autoplay=true&buyURL=http://www.3am.co.za/catalog/product_info.php?products_id=<?php echo $HTTP_GET_VARS['products_id'];?>&coverURL=<?php echo "{$nano_result_rows['products_image']}";?>" quality="high" wmode="transparent" bgcolor="" width="150" height="388" name="movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></object>' onFocus="this.select()" readonly="true">
</center>
                    <?php }?>
                 </td>
              </tr>
        </table>
<?php
 }
?>    
    
    
    
    
    
    
<!-- osPlayer v2 End -->
<?php
    if (tep_not_null($product_info['products_image'])) {
?>
          <table border="0" cellspacing="2" cellpadding="0" align="right">
            <tr>
              <td align="center" class="">
<? 
/*
<script language="javascript"><!--
document.write('<?php echo '<table cellpadding=0 cellspacing=0><tr><td class=tdpimg><a href="javascript:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="0" vspace="0"') . '</a></td></tr></table>'; ?>');
//--></script>
<noscript>
*/ 
?>


<div>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" class="smoothbox">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="1" vspace="1"') . '</a>';?>
</div>


<?php
/*
</noscript>
*/
?>
<?php
//affiliate build a link begin
if (tep_session_is_registered('affiliate_id')) {
?>
<?php echo '<a href="' . tep_href_link(FILENAME_AFFILIATE_BANNERS_BUILD, 'individual_banner_id=' . $product_info['products_id']) .'" target="_self">' . tep_image('includes/languages/english/images/buttons/button_affiliate_build_a_link.gif', 'Make a link') . ' </a>'; ?><?php
}
//affiliate build a link begin
?>
              </td>
            </tr>
<?php if( (tep_not_null($product_mp3['folder'])) && (ENTRY_OSCP_POPUP == 'true') && (file_exists(DIR_FS_CATALOG_MP3 . $product_mp3['folder'])) && (is_dir(DIR_FS_CATALOG_MP3 . $product_mp3['folder']))) { 
            echo '<tr><td align="center">';    
	    echo '<a href="javascript:popupWindowPlayer(\'' . 'popup_oscplayer.php?product_id=' . $HTTP_GET_VARS['products_id'] . '\')">' . tep_image_button('button_preview_mp3.gif', IMAGE_BUTTON_MP3) . '</a>'; 
            echo '</td></tr><tr><td align="center"><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank"><img src="images/get_flash_player.gif" border="0"></a></td></tr>';
	        } ?> 
          </table>
<?php
    }
?>
          <br><p class="productInfo"><?php echo stripslashes($product_info['products_description']); ?></p>
<?php
    $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
    $products_attributes = tep_db_fetch_array($products_attributes_query);
    if ($products_attributes['total'] > 0) {
?>
          <table border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td class="title" colspan="2"><h2><?php echo TEXT_PRODUCT_OPTIONS; ?></h2><br></td>
            </tr>
<?php
      $products_options_name_query = tep_db_query("select distinct popt.products_options_id, popt.products_options_name from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "' order by popt.products_options_name");
      while ($products_options_name = tep_db_fetch_array($products_options_name_query)) {
        $products_options_array = array();
	//Sort by Price (if price is same (or 0), it sorts based on the order that the option was entered)
        $products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.products_attributes_id from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pa.options_values_price, pa.products_attributes_id");
        //Sort Alphabetically
        //$products_options_query = tep_db_query("select pov.products_options_values_id, pov.products_options_values_name, pa.options_values_price, pa.price_prefix, pa.products_attributes_id from " . TABLE_PRODUCTS_ATTRIBUTES . " pa, " . TABLE_PRODUCTS_OPTIONS_VALUES . " pov where pa.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pa.options_id = '" . (int)$products_options_name['products_options_id'] . "' and pa.options_values_id = pov.products_options_values_id and pov.language_id = '" . (int)$languages_id . "'" . " order by pov.products_options_values_name");        
        while ($products_options = tep_db_fetch_array($products_options_query)) {
          $products_options_array[] = array('id' => $products_options['products_options_values_id'], 'text' => $products_options['products_options_values_name']);
          if ($products_options['options_values_price'] != '0') {
            $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
          }
        }

        if (isset($cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']])) {
          $selected_attribute = $cart->contents[$HTTP_GET_VARS['products_id']]['attributes'][$products_options_name['products_options_id']];
        } else {
          $selected_attribute = false;
        }
?>

<!-- product attributes pull down menus begin //-->
            <tr>
              <td class="title"><?php echo $products_options_name['products_options_name'] . ':'; ?></td>
              <td class="title"><?php echo tep_draw_pull_down_menu('id_' . $HTTP_GET_VARS['products_id'] . '[' . $products_options_name['products_options_id'] . ']', $products_options_array, $selected_attribute); ?></td>
            </tr>

<!-- product attributes pull down menus end //-->

<?php
      }
?>
          </table>
<?php
    }
//Master Products    
    if (tep_not_null($product_info['products_url'])) {
?>
      <tr>
        <td class="main"><br><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
    }    
?>
      </tr>
       <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>     
<?php
    if ($product_info['products_price'] >= 0) {
   
    $qty_array = array();
   
    for ($i=0; $n2 = (($product_info['products_quantity'] < 20) ? $product_info['products_quantity'] : 20), $i <= $n2; $i++) {
   	
    $qty_array[] = array('id' => $i, 'text' => $i); 
}
?>
      <tr>
        <td align="right" class="bordertlr"><?php if ($product_info['products_quantity'] > 0) {
     echo TEXT_QUANTITY . '&nbsp;&nbsp;' . tep_draw_input_field('Qty_ProdId_' . $product_info['products_id'], '0', 'size="4" class="inputbox" onblur="if(this.value==\'\') this.value=\'0\';" onfocus="if(this.value==\'0\') this.value=\'\';"'); 
} elseif ((STOCK_CHECK == 'false')&& ($product_info['products_quantity'] < 1)) {
      	$qty_array = array();
            for ($i=0; $ns = 20, $i <= $ns; $i++) {
            $qty_array[] = array('id' => $i, 'text' => $i); 
        }     
      echo TEXT_QUANTITY . '&nbsp;&nbsp;' . tep_draw_input_field('Qty_ProdId_' . $product_info['products_id'], '0', 'size="4"');
      } else {
      echo TEXT_STOCK;
}
	echo tep_draw_separator('pixel_trans.gif', '30', '10');
?>
        </td>
      </tr>
<?php
}
?>  
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
    $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
    $reviews = tep_db_fetch_array($reviews_query);
    if ($reviews['count'] > 0) {
?>
      <tr>
        <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php
    }

    if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) {
?>
      <tr>
        <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td>
      </tr>
<?php
    } else {
?>
<!--
      <tr>
        <td align="center" class="smallText"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?>
</td>
      </tr>
-->
<?php
    }
?>
      <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr><td>
<?php echo '<div class="buttons" style="float: left;"><a href="javascript: history.go(-1);">Back</a></div>'; ?></td>
      <td><div style="float: right;"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></div>
	</td>

    </tr></table>
	</td>
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr>
<?php

$master_query = tep_db_query("select products_id from " . TABLE_PRODUCTS . " where products_master =  '" . (int)$HTTP_GET_VARS['products_id'] . " '");
$results = tep_db_fetch_array($master_query);
if (($results['products_id'] != null) && ($product_info['products_master_status'] == 1)) { ?>

   <tr>
    <td align="left" class="bordertlr">&nbsp;<?php echo TEXT_SLAVE_PRODUCTS; ?></td>
   </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
      </tr> 
   <tr>
    <td class="bordertlr"><?php  include(DIR_WS_MODULES . FILENAME_MASTER_PRODUCTS); ?></td>
   </tr>
</table>

<table width="100%" cellspacing="0" cellpadding="0" border="0">
      <tr>
	        <td align="left" class=""><?php /* echo '<div class="buttons"><a href="javascript: history.go(-1);">Back</a></div>'; */ ?></td>
                <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<?php  if ($reviews['count'] > 0) { ?>               
                <td align="right" class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td>

<?php
}
?>                
<!-- Start JLG Disable Buy Now and Shopping Cart -->
<?php /*
    $nononline_items = array();
    $sql = "SELECT products_id FROM products WHERE disable_addtobasket='Y'";
    $result = mysql_query($sql);
    while($id = mysql_fetch_array($result,MYSQL_ASSOC)){
        array_push($nononline_items,$id['products_id']);
    }
    if (!in_array($product_info['products_id'],$nononline_items)){
    echo ("<td class=\"\" align=\"right\">". tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART));
    }
    else {
    echo ("<td class=\"main\" align=\"center\">".NON_ONLINE_ITEM);
    }        
*/
?></td>
<!-- End JLG Disable Buy Now and Shopping Cart -->
</form>
                </td></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
<?php    
  }
}
?>

      <tr>
        <td>
<?php
    if ((USE_CACHE == 'true') && empty($SID)) {
      echo tep_cache_also_purchased(3600);
    } else {
      include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
    }
?>
        </td>
      </tr>
    </table></td>
<!-- Master Products EOF //-->    
<!--
<?php
/*
<td>&nbsp;</td>
    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="0">
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
    </table></td>
*/
?>
-->
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
